package rsa

func formatPrivateKey(kt KeyType, key string) string {
	if kt == Pkcs8 {
		return formatPkcs8PrivateKey(key)
	}
	return formatPkcs1PrivateKey(key)
}

func formatPublicKey(kt KeyType, key string) string {
	if kt == Pkcs8 {
		return formatPkcs8PublicKey(key)
	}
	return formatPkcs1PublicKey(key)
}
